package com.example.warehouse_manager.mapper;


import com.example.warehouse_manager.entity.InStore;
import com.example.warehouse_manager.page.Page;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
* @author Yang
* @description 针对表【in_store(入库单)】的数据库操作Mapper
* @createDate 2024-04-09 15:04:27
* @Entity com.example.warehouse_manager.entity.InStore
*/
@Mapper
public interface InStoreMapper{

    //添加入库单
    public int insertStore(InStore inStore);

    //查询入库单行数
    public Integer findInStoreCount(InStore inStore);

    //分页查询入库单
    public List<InStore> findInStorePage(@Param("page") Page page,@Param("inStore") InStore inStore);

    //根据id修改入库单状态为已入库
    public int setIsInById(Integer inStoreId);

}




